<?php defined('InShopNC') or exit('Access Invalid!taotaovjia'); ?>
<?php //echo getChat($layout);?>
<div id="faq"></div>
<style type="text/css">
    .bottom {
        overflow: visible;
        height: 119px;
        background: url(/public/src/images_shujian/bottom.png);
    }
    .bNavList {
        border: 0 solid #fff;
        line-height: 35px;
        padding: 0 12px;
        width: 1000px;
    }
    .bNavList a{
        color: #666666;
        text-decoration: none;
        padding: 0 10px;
    }
    .bNavList .f_l {
        float: left;
    }
    .bNavList .f_r {
        float: right;
    }
    .bottom_list li {
        float: left;
        padding:0 18px;
    }
    .copyright{
        text-indent: 2em;
    }
</style>
<div class="g-ft">
    <div id="bottomAdv"></div>
    <div id="bottomNav" class="wrapper" style="">
        <div class="bNavList clearfix">
            <div class="f_l">
                <?php $navList = array();
                if (!empty($output['nav_list']) && is_array($output['nav_list'])) {
                    foreach ($output['nav_list'] as $nav) {
                        if ($nav['nav_location'] == '2') {
                            $item = '<a target="' . ($nav['nav_new_open'] ? '_blank" ' : '"').'  href="';
                            switch ($nav['nav_type']) {
                                case '0':
                                    $item .= $nav['nav_url']=='http://'?'':$nav['nav_url'];
                                    break;
                                case '1':
                                    $item .= urlShop('search', 'index', array('cate_id' => $nav['item_id']));
                                    break;
                                case '2':
                                    $item .= urlShop('article', 'article', array('ac_id' => $nav['item_id']));
                                    break;
                                case '3':
                                    $item .= urlShop('activity', 'index', array('activity_id' => $nav['item_id']));
                                    break;
                            }
                            $item .= '">' . e($nav['nav_title']) . '</a>';
                            $navList[] = $item;
                        }
                    }
                } ?>
                <?php echo implode('&nbsp;|&nbsp;', $navList) ?>
            </div>
            <div class="f_r">
                招商热线:<img src="/public/src/images/zhao_tel.png"/>
                &nbsp;&nbsp;&nbsp;&nbsp;友情链接:<select onChange="linksChanged(this)">
                    <option value="">友情链接</option>
                    <option value="http://www.baidu.com">百度</option>
                    <option value="http://www.haosou.com/">360搜索</option>
                    <option value="<?php echo urlShop('seller_login','show_login');?>">商品管理</option>
                </select>
            </div>
        </div>
        <div class="copyright">
            Copyright 2013 版权所有:云南书剑茶叶有限公司 <?php echo $GLOBALS['setting_config']['icp_number']; ?>
            联系地址：云南省昆明市官渡区康乐茶文化城36栋22号
            <?php echo html_entity_decode($GLOBALS['setting_config']['statistics_code'], ENT_QUOTES); ?>
        </div>
    </div>
    <div id="bottom" class="bottom">
        <div class="bottom_list wrapper">
            <ul>
                <li><img src="/public/src/images/yanzheng.png"/></li>
                <li><img src="/public/src/images/zixun.png"/></li>
                <li><img src="/public/src/images/weixing.png"/></li>
                <li><img src="/public/src/images/shouji.png"/></li>
            </ul>
        </div>
    </div>
</div>
<?php if (C('debug') == 1) { ?>
    <div id="think_page_trace" class="trace">
        <fieldset id="querybox">
            <legend><?php echo $lang['nc_debug_trace_title']; ?></legend>
            <div> <?php print_r(Tpl::showTrace()); ?> </div>
        </fieldset>
    </div>
<?php } ?>
<script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/js/jquery.cookie.js"></script>
<link href="<?php echo RESOURCE_SITE_URL; ?>/js/perfect-scrollbar.min.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/js/jquery.mousewheel.js"></script>
<script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/js/qtip/jquery.qtip.min.js"></script>
<link href="<?php echo RESOURCE_SITE_URL; ?>/js/qtip/jquery.qtip.min.css" rel="stylesheet" type="text/css">

<script language="javascript">
    $(function () {
        // Membership card
        $('[nctype="mcard"]').membershipCard({type: 'shop'});
    });
    function navMoveUp(obj, id) {
        var img;
        obj.style.marginTop = "5px";
        img = obj.getElementsByTagName("img");
        img[0].src = "/public/src/images/nav_top_" + id + "_1.png";
    }
    function navMoveDown(obj, id) {
        var img;
        obj.style.marginTop = "10px";
        img = obj.getElementsByTagName("img");
        img[0].src = "/public/src/images/nav_top_" + id + ".gif";
    }
    var process_request = "正在处理您的请求...";
    function linksChanged(obj) {
        window.location.href = obj.value;
    }
</script>
